Skip to content

Conversation

@fhost
Copy link
Contributor

@fhost fhost commented Nov 24, 2025

New: Add a small fscrypt test into the base provider, in its own category.

Description

The new fscrypt test generates an ext4 disk image, mount it and setup fscrypt.
Then it creates a file in the disk image mountpoint, locks it and verifies that the file is not accessible anymore. Finally, it unlocks it and check that the file is accessible and its content is correct.

Tests

checkbox-cli, select automated fscrypt test, run the test plan. Tested on my laptop and on my project device (qualcomm arm64 device). Testing with fscrypt already setup and not setup.

@fhost fhost force-pushed the fhost/fscrypt branch 2 times, most recently from 3334c41 to bc7d5f2 Compare November 24, 2025 17:27
@fhost fhost changed the title providers/base: add fscrypt test new: providers/base: add fscrypt test Nov 24, 2025
@fhost fhost changed the title new: providers/base: add fscrypt test providers/base: add fscrypt test (New) Nov 24, 2025
@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.83%. Comparing base (a941f1f) to head (964dd54).
⚠️ Report is 38 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2215      +/-   ##
==========================================
+ Coverage   53.70%   53.83%   +0.12%     
==========================================
  Files         401      402       +1     
  Lines       43144    43270     +126     
  Branches     7996     8023      +27     
==========================================
+ Hits        23170    23293     +123     
- Misses      19161    19162       +1     
- Partials      813      815       +2     
Flag Coverage Δ
provider-base 31.41% <100.00%> (+0.50%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fhost fhost force-pushed the fhost/fscrypt branch 5 times, most recently from c4de44f to cef64d9 Compare November 25, 2025 14:57
Copy link

@hawesy-can hawesy-can left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'm not an expert in this area.

@fhost fhost force-pushed the fhost/fscrypt branch 2 times, most recently from 4aba6b4 to 9a34ccc Compare December 11, 2025 10:01
@fhost fhost requested a review from hawesy-can December 11, 2025 15:40
@fhost fhost force-pushed the fhost/fscrypt branch 2 times, most recently from 3de25d3 to 4e57c8d Compare January 9, 2026 14:35
Copy link
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the long silence. I've added a few comments, see if they make sense.

@fhost fhost force-pushed the fhost/fscrypt branch 5 times, most recently from 270f461 to a585b2c Compare January 9, 2026 15:28
@fhost fhost requested a review from pieqq January 9, 2026 15:35
Copy link
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last tiny change request, and then it should be good.

@fhost fhost requested a review from pieqq January 12, 2026 14:40
Copy link
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Let's see if CI passes for older builds.

@pieqq pieqq removed the request for review from hawesy-can January 12, 2026 15:35
@pieqq pieqq merged commit 9303ce2 into canonical:main Jan 12, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants